<div id="tag" class="article_tag">
  <div class="conner_tag_top">
  </div>
  <div class="taginfo_intro">
    <div class="corre clearfix">
      <span class="ll">
        <span>相关商品标签：</span>
        <% @category.cat1_tags.map(&:name).uniq.each do |tag_name| -%>
          <%= link_to tag_name, tag_path(:name => tag_name) %>&nbsp;&nbsp;
        <% end -%>
      </span>
      <span class="rr more">
        <img src="/images/arrow_tag_1.gif" width="7" height="11" alt=" " />&nbsp;&nbsp;更多
      </span>
    </div>
    <div class="clear"></div>
    <div class="info_detail same">
      <ul>
        <% @category.children.each do |category| -%>
          <li><%= link_to category.name, cat2_path(:parent_id => category.parent_id, :id => category.id) %></li>
        <% end -%>
      </ul>
      <div class="clear"></div>
    </div>
  </div>
  <div class="conner_tag_bottom more"><img src="/images/arrow_tag_1.gif" width="7" height="11" alt=" " />&nbsp;&nbsp;显示全部</div>
  <!--标签数量-->
  <div class="clearfix"> 在<span class="font_color4"><strong><%= @category.name %></strong></span>分类中共找到相关信息<span class="font_color4"><strong><%= @items.total_entries %></strong></span>件。 </div>
  <!--图片开始-->
  <div class="product_list">
    <div class="title">
      <ul>
        <li>排序：</li>
        <li class="<%= sort_by('name') %>"><%= link_to '综合排序↓', category_path(:order => 'name') %></li>
        <li class="<%= sort_by('global_rating') %>"><%= link_to '评分排序↓', category_path(:order => 'global_rating') %></li>
        <li class="<%= sort_by('created_at') %>"><%= link_to '最新上架↑', category_path(:order => 'created_at') %></li>
      </ul>
      <div class="more_blue">
        <%= will_paginate @items, :page_links => false %>
      </div>
    </div>
    <div class="clear"></div>
    <ul class="product_list_img clearfix">
      <% @items.each do |item| -%>
        <li>
          <div class="product_img"><%= link_to item_path(item) do %><%= image_tag "#{item.main_pic}_170x170.jpg", :title => "#{item.name}", :alt => "#{item.name}"%><% end %></div>
          <div class="product_link"><%= link_to truncate(item.name, :length => 28), item_path(item) %></div>
          <span class="font_color4"><%= item.want_buy_count %></span>
          <span class="pl">人想买／</span>
          <span class="font_color4"><%= item.bought_count %></span>
          <span class="pl">人买过</span><br/>
          <span class="star"><span class="allstar<%= show_start(item) %> star"></span> <span class="pl"><%= item.global_rating %></span></span>
        </li>
      <% end -%>
    </ul>
    <div class="clear"></div>
    <!--分页-->
    <%= will_paginate @items %>
  </div>
</div>
<!--右侧栏目开始-->
<div class="aside_tag">
  <!--广告开始 -->
  <div class="ads_top_right"><img src="/images/icon/ads_top_1.jpg" width="240" height="190" alt="广告图片" /></div>
  <!--广告结束-->
  
  <!--最近热评-->
  <!--<h2 class="tab_greenh2">
    <ul class="tab_tag">
      <li class="select"><span>最近<%= @category.name %>热评</span> </li>
    </ul>
  </h2>
  <div class="clear" ></div>
  <div class="conner_green_top_tag"></div>
  <div class="week_top">
    <ul class="content">
      <% Item.active.limit(10).each_with_index do |item, index| -%>
        <li class="clearfix">
          <div class="top_number number<%= index > 2 ? '' : index + 1 %>"><%= index + 1 %></div>
          <div class="adimg"><img src="/images/icon/top_select_img.png" width="54" height="43" alt=" " /></div>
          <div class="name_tag"><%= link_to truncate(item.name, :length => 18), item %></div>
          <div class="price"><%= link_to 'Hitao价: 2.20元', item %></div>
        </li>
      <% end -%>
    </ul>
  </div>
  <div class="conner_green_bottom_tag"></div>-->
  
  <!--推荐开始-->
  <!--<h2 class="tab_greenh2">
    <ul class="tab_tag">
      <li class="select" style="width:90px; text-align:center;"><span>浏览历史</span> </li>
    </ul>
  </h2>
  <div class="clear"></div>
  <div class="conner_green_top_tag"></div>
  <div class="photo_show">
    <div class="content clearfix">
      <ul>
        <% Item.active.limit(9).each_with_index do |item, index| -%>
          <li>
            <%= link_to item_path(item) do %><%= image_tag "#{item.main_pic}_60x60.jpg", :title => "#{item.name}", :alt => "#{item.name}"%><% end %>
          </li>
        <% end -%>
      </ul>
    </div>
    <div class="ul" style="margin-bottom: 12px;"></div>
    <div style="text-align:center"><a href="#">清除</a></div>
  </div>
  <div class="conner_green_bottom_tag"></div>-->
</div>

